Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 10 - AppleTalk Addressing / AppleTalk Addressing Reference
Functions


OTInitDDPAddress

Initializes a DDP address structure.

C INTERFACE
void OTInitDDPAddress (DDPAddress* address, UInt16 net, 
                       UInt8 node, UInt8 socket, UInt8 ddpType);
C++ INTERFACES
None. C++ applications use the C interface to this function.

PARAMETERS
address
A pointer to the DDP address structure you wish to initialize.
net
The network number you wish to specify. Set to 0 to default to the local network.
node
The node ID you wish to specify. Set to 0 to default to the
local node.
socket
The socket number you wish to specify. Set to 0 to allow Open Transport to assign a socket dynamically when you use this address to bind an endpoint.
ddpType
The DDP type you wish to specify. Set to 0 unless you are
using DDP.
SEE ALSO
The DDP address structure is described in the section "The DDP Address Structure," beginning on page 10-16.

To initialize an NBP address, use the OTInitNBPAddress function (page 10-22). To initialize a combined DDPNBP address, use the OTInitDDPNBPAddress function (page 10-23).

See the chapter "Datagram Delivery Protocol" in this book for more information about the DDP type.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996